package com.huaishushu.service;

import com.huaishushu.entity.AddressBook;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 地址管理 服务类
 * </p>
 *
 * @author ChiBaoBaoHuaiShuShu
 * @since 2023-05-28
 */
public interface IAddressBookService extends IService<AddressBook> {

    /**
     * 添加收货地址
     * @param addressBook
     * @return
     */
    void addressBook(AddressBook addressBook);

    /**
     * 查询当前用户的所有地址
     * @param addressBook
     * @return
     */
    List<AddressBook> list(AddressBook addressBook);

    /**
     * 修改默认地址
     * @param addressBook
     * @return
     */
    void setDefault(AddressBook addressBook);
}
